hosts = window.location.protocol + '//' + window.location.host;
 protocol = hosts.indexOf('https') > -1 ? 'https' : 'http';
 // prefix = window.location.origin.includes('127')? protocol + '://192.168.2.118:8191/server-front/front' : protocol + '://apix2.jeecms.com/server-front/front';
 prefix = window.location.origin.includes('127') ?'http://192.168.2.115:8191/server-front/front' :
				window.location.origin+'/server-front/front';
 //prefix = 'https://demo.jeecms.com/server-front/front'
prefix1 = window.location.origin.includes('127') ?'http://192.168.2.115:8191/server-front' :
				window.location.origin+'/server-front/';
homeApi = {
	// 热搜词
	fetchSearchwordList(data, callback = () => {}) {
		return Api.get(`${prefix}/searchword/list`, data, callback)
	},
	//顶层栏目
	HeaderChannellist(data, callback = () => {}) {
		return Api.get(`${prefix}/channel/list`, data, callback)
	},
	getResPrefix(data, callback = () => {}) {
		
	},
	getSEOInfo(){
		return Api.get(`${prefix1}/home/path`, data, callback)
	},
	//栏目详情
	getChannelDetail(data, callback = () => {}){
		return Api.get(`${prefix}/channel/detail`, data, callback)
	},
}

